home *** CD-ROM | disk | FTP | other *** search
/ PC Play 128 / pc play 128.iso / Demo / xmr / xmr.exe / {app} / Shaders / ps / ps1_1_normal_phong.psh < prev    next >
Encoding:
Text File  |  2007-02-23  |  1.1 KB  |  33 lines

  1. // Pixel Shader 1.1 generated by NVIDIA Cg compiler
  2. // cgc version 1.3.0001, build date Jan  7 2005 14:01:35
  3. // command line args: -q -profile ps_1_1 -entry main
  4. // source file: ps1_1_normal_phong.cg
  5. //vendor NVIDIA Corporation
  6. //version 1.0.02
  7. //profile ps_1_1
  8. //program main
  9. //semantic main.baseMap : TEXUNIT0
  10. //semantic main.AmbientEmissive
  11. //semantic main.Diffuse
  12. //semantic main.Specular
  13. //var sampler2D baseMap : TEXUNIT0 : texunit 0 : 1 : 1
  14. //var float4 AmbientEmissive :  : c[3] : 2 : 1
  15. //var float4 Diffuse :  : c[1] : 3 : 1
  16. //var float4 Specular :  : c[2] : 4 : 1
  17. //var float4 I.Color : $vin.COLOR0 : COLOR0 : 0 : 1
  18. //var float4 I.LightAtten : $vin.COLOR1 : COLOR1 : 0 : 1
  19. //var float4 I.TexCoord0 : $vin.TEXCOORD0 : TEXCOORD0 : 0 : 1
  20. //var float4 main : $vout.COLOR : COLOR : -1 : 1
  21. ps.1.1
  22. def c0, 0.000000, 1.000000, 0.000000, 1.000000
  23. tex t0
  24. dp3 t1.rgb, c0, v0
  25. + mul t1.a, c0.a, v0.b
  26. mul t1.rgb, c1, t1
  27. mul t2.rgb, c2, t1.a
  28. mad t1.rgb, t1, v1_bx2.a, c3
  29. mul r0.rgb, t2, v1_bx2.a
  30. mad r0.rgb, t1, t0, r0
  31. + mov r0.a, t0.a
  32. // 7 instructions
  33.